﻿/**
 *
 * Formulario alta movimientos
 *
 * @author Javier Caride Ulloa
 * @copyright (c) 2010, by Javier Caride Ulloa
 * @date April 26th, 2010
 * @version $Id:$
 *
 * @license AddForm.ui.js is licensed under the terms of the Open Source GPL 3.0 license. 
 *
 * License details: http://www.gnu.org/licenses/gpl.html
 */
 
AddFormUi = Ext.extend(Ext.form.FormPanel, {
	frame: true,
	border: false,
	initComponent: function() {
		this.items = [
			{
				fieldLabel : 'Importe',
				xtype: 'numberfield',
				id: 'frm_importe',
				name : 'importe',
				allowBlank:false,
				width : 175
			},
			{
				fieldLabel : 'Descripción',
				id: 'frm_descripcion',
				name : 'descripcion',
				allowBlank:false,
				xtype: 'textarea',
				width : 175,
				height: 175
			},
			{
				fieldLabel : 'Fecha',
				id: 'frm_fecha',
				name : 'fecha',
				allowBlank:false,
				xtype: 'datefield',
				renderer: Ext.util.Format.dateRenderer('d/m/Y'),
				width : 175
			},
			{
				xtype: 'combo',
				id: 'frm_categoria',
				name: 'categoria',
				fieldLabel: 'Categoría',
				width : 175,
			},
			{
				xtype: 'combo',
				id: 'frm_subcategoria',
				name: 'subcategoria',
				fieldLabel: 'Subcategoría',
				width : 175,
			},
			{
				id: 'frm_id',
				name : 'id',
				xtype: 'hidden'
			}
		];
		
		AddFormUi.superclass.initComponent.call(this);
	}
});